<?php

///////////// Redirection

if($_GET['microurl']){

    include('actions/redirect.php');
	exit;
}

///////////// Actions

$filename = preg_replace("#\W+#", "" ,$_GET['action']);	
$filename = $filename ? $filename : "form";
if (file_exists("actions/".$filename.".php"))
{
	include("actions/".$filename.".php");
	ob_start();
	include("view/tpl_".$filename.".php");
	$content = ob_get_contents();
	ob_clean();
	include("view/tpl_global.php");
}


?>